
import axios from '../axios'
// 代理商对应接口模块
// 查询学酷代理商列表
export const investmentQueryXuecoo = (params) => {
    return axios({
        url: '/investmentQuery/studyKooList',
        method: 'get',
        params
    })
}
// 查询网校代理商列表
export const investmentQueryChinaedu = (params) => {
    return axios({
        url: '/investmentQuery/onlineSchoolList',
        method: 'get',
        params
    })
}
// 代理商详细信息查询
export const investmentQueryAgentIfo = (params) => {
    return axios({
        url: '/investmentQuery/investmentInfo',
        method: 'get',
        params
    })
}
// 查询代理商签约信息
export const investmentQuerySignInfo = (params) => {
    return axios({
        url: '/investmentQuery/signInfo',
        method: 'get',
        params
    })
}
// 更新代理商客户
export const  investmentInfoUpdate= (data) => {
    return axios ({
        url: '/investment/updateInvestmentInfo',
        method:'post',
        data   
    })
}
// 解锁锁定
export const  investmentLock= (params) => {
    return axios ({
        url: '/investment/lockCustomer',
        method:'post',
        params   
    })
}
// 新增代理商客户
export const  investmentInfoAdd= (data) => {
    return axios ({
        url: '/investment/addInvestmentInfo',
        method:'post',
        data   
    })
}
// 获取下拉
// 获取客户来源
export const investment_customer_from = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=investment_customer_from',
      method: 'get',
      params
    })
}
// 客户类型
export const investment_customer_type = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=investment_customer_type',
      method: 'get',
      params
    })
}
// 客户进展
export const investment_customer_progress = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=investment_customer_progress',
      method: 'get',
      params
    })
}
// 沟通形式
export const investment_communication_type = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=investment_communication_type',
      method: 'get',
      params
    })
}
// 性别
export const sex = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=sex',
      method: 'get',
      params
    })
}
// 获取方式
export const student_data_from_type = (params) => {
    return axios({
      url: '/code/queryKVs?codeType=student_data_from_type',
      method: 'get',
      params
    })
}
// 批量分配
export const  investmentAllotCustomer= (params) => {
    return axios ({
        url: '/investment/allotCustomer',
        method:'post',
        params   
    })
}
// 删除代理商客户
export const  investmentDelete= (params) => {
    return axios ({
        url: '/investment/deleteCustomer',
        method:'post',
        params   
    })
}
// 根据客户ID查询跟进日志
export const investmentTrackingInfo = (params) => {
    return axios({
        url: '/investmentTrackingInfo/queryListByCustomerId',
        method: 'get',
        params
    })
}

// 添加跟进（修改后数据结构 可以提交客户信息以及跟进信息）
export const  investmentTrackingInfoAdd= (data) => {
    return axios ({
        url: '/investmentTrackingInfo/addTrackingInfo',
        method:'post',
        data   
    })
}

// 查询网校跟进记录
export const investmentTrackingInfoChinaedu = (params) => {
    return axios({
        url: '/investmentTrackingInfo/onlineSchoolList',
        method: 'get',
        params
    })
}
// 查询网校跟进记录
export const investmentTrackingInfoXuecoo = (params) => {
    return axios({
        url: '/investmentTrackingInfo/studyKooList',
        method: 'get',
        params
    })
}
// 根据ID查询跟进记录（不分网校学酷）
export const investmentTrackingById = (params) => {
    return axios({
        url: '/investmentTrackingInfo/queryListByCustomerId',
        method: 'get',
        params
    })
}
// 查询跟进次数
export const investmentTrackingTrackTimes = (params) => {
    return axios({
        url: '/investmentTrackingInfo/queryLeastTrackTimes',
        method: 'get',
        params
    })
}
// 领取代理商客户
export const  getInternationalWatersCus= (params) => {
    return axios ({
        url: '/investment/getInternationalWatersCus',
        method:'post',
        params   
    })
}
// 查询网校外呼记录
export const  callOnlineSchoolList= (params) => {
    return axios ({
        url: '/investmentCallInfo/onlineSchoolList',
        method:'get',
        params   
    })
}
// 查询学酷外呼记录
export const  callStudyKooList= (params) => {
    return axios ({
        url: '/investmentCallInfo/studyKooList',
        method:'get',
        params   
    })
}
// 网校客户统计
export const  invstmentCustomerStatisticsChinaedu= (params) => {
    return axios ({
        url: '/invstmentCustomerStatistics/onlineSchoolList',
        method:'get',
        params   
    })
}
// 学酷客户统计
export const  invstmentCustomerStatisticsXuecoo= (params) => {
    return axios ({
        url: '/invstmentCustomerStatistics/studyKooList',
        method:'get',
        params   
    })
}
// 查询跟进日志
export const  invstmentCustomerQueryTrackingInfo= (params) => {
    return axios ({
        url: '/investmentTrackingInfo/queryTrackingInfo',
        method:'get',
        params   
    })
}
// 网校批量导入接口
export const  importOnlineInfo= (params) => {
    return axios ({
        url: '/investmentImport/importOnlineInfo',
        method:'post',
        params   
    })
}
// 学酷批量导入
export const  importStudyKooInfo= (params) => {
    return axios ({
        url: '/investmentImport/importStudyKooInfo',
        method:'post',
        params   
    })
}
// 客户类型中文转code
export const  queryTypeCode= (params) => {
    return axios ({
        url: '/code/queryKV?codeType=investment_customer_type_',
        method:'get',
        params   
    })
}
//客户进展中文转code
export const  queryProgressCode= (params) => {
    return axios ({
        url: '/code/queryKV?codeType=investment_customer_progress_',
        method:'get',
        params   
    })
}
// 校验备用电话接口
export const  checkPhone= (params) => {
    return axios ({
        url: '/investmentQuery/checkPhone',
        method:'get',
        params   
    })
}
// 资源互转
export const  updateCoutomersort= (params) => {
    return axios ({
        url: '/investment/updateCoutomersort',
        method:'post',
        params   
    })
}
// 更新关键字
export const  updatekeyword= (params) => {
    return axios ({
        url: '/investment/updatekeyword',
        method:'post',
        params   
    })
}
// 活动管理
// 分页查询
export const  getActivityManage= (params) => {
    return axios ({
        url: '/activityManager/pageList',
        method:'get',
        params   
    })
}
// 新增活动
export const  saveOrUpdateActivityInfo= (params) => {
    return axios ({
        url: '/activityManager/saveOrUpdateActivityInfo',
        method:'post',
        params   
    })
}

// 生成子链接
export const  generateSubLink= (params) => {
    return axios ({
        url: '/activityManager/generateSubLink',
        method:'get',
        params   
    })
}
// 子链接管理
export const  getActivitySublinkManager= (params) => {
    return axios ({
        url: '/activitySublinkManager/pageList',
        method:'get',
        params   
    })
}
// 查看二维码
export const  getQRcode= (params) => {
    return axios ({
        url: '/activitySublinkManager/queryQCode',
        method:'get',
        params   
    })
}
// 下载二维码
export const  downloadQRCode= (params) => {
    return axios ({
        url: '/activitySublinkManager/downloadQRCode',
        method:'get',
        params   
    })
}
// 批量导出
export const  batchExport= (params) => {
    return axios ({
        url: '/activitySublinkManager/batchExport',
        method:'get',
        params   
    })
}
// 字典类型列表
export const  DictionaryTypeList= (params) => {
    return axios ({
        url: '/codeType/pageList',
        method:'get',
        params   
    })
}
// 字典类型保存
export const  DictionaryTypeListSave= (params) => {
    return axios ({
        url: '/codeType/saveCodeType',
        method:'post',
        params   
    })
}

// 字典类型编辑
export const  DictionaryTypeListUpdateCodeType= (params) => {
    return axios ({
        url: '/codeType/updateCodeType',
        method:'post',
        params   
    })
}

// 数据字典
export const  DictionaryDataList= (params) => {
    return axios ({
        url: '/code/pageList',
        method:'get',
        params   
    })
}
// 更新字典（编辑）
export const  DictionaryDataListUpdate= (params) => {
    return axios ({
        url: '/code/updateCodeInfo',
        method:'post',
        params   
    })
}
// 新增字典保存
export const  DictionaryDataListSave= (params) => {
    return axios ({
        url: '/code/saveCodeInfo',
        method:'post',
        params   
    })
}
// 删除字典
export const  DeleteCodeInfo= (params) => {
    return axios ({
        url: '/code/deleteCodeInfo',
        method:'get',
        params   
    })
}
// 刷新字典缓存

export const  refreshCache= (params) => {
    return axios ({
        url: '/code/refreshCache',
        method:'get',
        params   
    })
}

// 推广链接分页列表查询
export const  extensionManPageList= (params) => {
    return axios ({
        url: '/extensionManager/pageList',
        method:'get',
        params   
    })
}
// 新增 推广链接
export const  extensionManSaveInfo= (params) => {
    return axios ({
        url: '/extensionManager/saveInfo',
        method:'post',
        params   
    })
}
// 编辑 推广链接
export const  extensionManUpdateInfo= (params) => {
    return axios ({
        url: '/extensionManager/updateInfo',
        method:'post',
        params   
    })
}
// 查看二维码信息 推广链接
export const  extensionManQueryQCode= (params) => {
    return axios ({
        url: '/extensionManager/queryQCode',
        method:'get',
        params   
    })
}
// 删除 推广链接
export const  extensionManDelete= (params) => {
    return axios ({
        url: '/extensionManager/delete',
        method:'post',
        params   
    })
}
// 查询公海
export const  customerSeas= (params) => {
    return axios ({
        url: '/investmentQuery/customerSeas',
        method:'get',
        params   
    })
}
// 招商资源池列表
export const  investmentResources= (params) => {
    return axios ({
        url: '/investmentResources/pageList',
        method:'get',
        params   
    })
}
// 招商资源池同步
export const  investmentResourcesaddInfo= (data) => {
    return axios ({
        url: '/investmentResources/addInfo',
        method:'post',
        data   
    })
}
// 同步
export const  investmentResourcesPush= (params) => {
    return axios ({
        url: '/investmentResources/push',
        method:'post',
        params   
    })
}
// 所属销售查询

export const  belongToUserList= (params) => {
    return axios ({
        url: '/systemUser/belongToUserList',
        method:'get',
        params   
    })
}
// ###################营销日历#######################################
//分页查询配置信息
export const  calendarConfigList= (params) => {
    return axios ({
        url: '/calendarConfig/pageList',
        method:'get',
        params   
    })
}
// 添加或修改配置信息
export const  calendarAddOrUpdateInfo= (data) => {
    return axios ({
        url: '/calendarConfig/addOrUpdateInfo',
        method:'post',
        data   
    })
}
// 删除配置信息
export const  calendarDeleteInfo= (params) => {
    return axios ({
        url: '/calendarConfig/deleteInfo',
        method:'post',
        params   
    })
}
// 查看日历添加tips
export const  calendarContentContentConfigList= (params) => {
    return axios ({
        url: '/calendarContentContentConfig/pageList',
        method:'get',
        params   
    })
}
// 新增营销tips
export const   addOrUpdateCalendarTips= (data) => {
    return axios ({
        url: '/calendarContentContentConfig/addOrUpdateCalendarTips',
        method:'post',
        data   
    })
}
// 删除tips
export const   deleteCalendarTips= (params) => {
    return axios ({
        url: '/calendarContentContentConfig/deleteCalendarTips',
        method:'post',
        params   
    })
}
// 日历配置列表查询
export const  calendarSideConfigList= (params) => {
    return axios ({
        url: '/calendarSideConfig/queryList',
        method:'get',
        params   
    })
}
// 编辑日历配置
export const   calendarSideConfigupdateInfo= (data) => {
    return axios ({
        url: '/calendarSideConfig/updateInfo',
        method:'post',
        data   
    })
}
// 侧边列表查询 营销日历
export const  querySideList= (params) => {
    return axios ({
        url: '/calendarConfig/querySideList',
        method:'get',
        params   
    })
}
// 查询日历内容
export const  queryContentList= (params) => {
    return axios ({
        url: '/calendarConfig/queryContentList',
        method:'get',
        params   
    })
}
// 查询下个月内容

export const  queryNextList= (params) => {
    return axios ({
        url: '/calendarConfig/queryNextList',
        method:'get',
        params   
    })
}

// 清空
export const   calendarSideConfigdeleteInfo= (params) => {
    return axios ({
        url: '/calendarSideConfig/deleteInfo',
        method:'post',
        params   
    })
}

// 查询物料包列表
export const  materielFileManageList= (params) => {
    return axios ({
        url: '/materielFileManage/pageList',
        method:'get',
        params   
    })
}
// 添加物料包
export const   materielFileManageInsert= (data) => {
    return axios ({
        url: '/materielFileManage/insert',
        method:'post',
        data   
    })
}

// 获取code
export const  materielFileManagecodeCreate= (params) => {
    return axios ({
        url: '/materielFileManage/codeCreate',
        method:'get',
        params   
    })
}
// 删除物料包
export const   materielFileManageDelete= (params) => {
    return axios ({
        url: '/materielFileManage/delete',
        method:'post',
        params   
    })
}
// 编辑物料包
export const   materielFileManageUpdate= (data) => {
    return axios ({
        url: '/materielFileManage/update',
        method:'post',
        data   
    })
}
// 置顶
export const   materielFileManageToTop= (params) => {
    return axios ({
        url: '/materielFileManage/toTop',
        method:'get',
        params   
    })
}
// 取消置顶
export const   materielFileManageRemoveToTop= (params) => {
    return axios ({
        url: '/materielFileManage/removeTop',
        method:'post',
        params   
    })
}
// 媒体文件信息列表
export const  mediaInfoList= (params) => {
    return axios ({
        url: '/mediaTypeInfo/pageList',
        method:'get',
        params   
    })
}
// 编辑文件包文件
export const   mediaTypeInfoUpdate= (data) => {
    return axios ({
        url: '/mediaTypeInfo/update',
        method:'post',
        data   
    })
}
// 下载文件包文件
export const  mediaTypeInfoDownload= (params) => {
    return axios ({
        url: '/mediaInfo/download',
        method:'get',
        params   
    })
}
// 删除文件包文件 
export const   mediaTypeInfodelete= (params) => {
    return axios ({
        url: '/mediaTypeInfo/delete',
        method:'post',
        params   
    })
}
// 创建文件信息

export const   mediaTypeInfoCreate= (data) => {
    return axios ({
        url: '/mediaTypeInfo/create',
        method:'post',
        data   
    })
}
// 交换位置
export const   mediaTypeInfoChangePlace= (params) => {
    return axios ({
        url: '/mediaTypeInfo/changePlace',
        method:'post',
        params   
    })
}
// 获取文件服务器文件 列表

export const  mediaInfoFileList= (params) => {
    return axios ({
        url: '/mediaInfo/pageList',
        method:'get',
        params   
    })
}
// 删除文件服务器上的文件
export const   mediaInfoFileDelete= (params) => {
    return axios ({
        url: '/mediaInfo/delete',
        method:'post',
        params   
    })
}
// 删除活动管理活动
export const  deleteActivityInfo= (params) => {
    return axios ({
        url: '/activityManager/deleteActivityInfo',
        method:'post',
        params   
    })
}
// 删除个人推广连接

export const  deleteActivityInfoPerson= (params) => {
    return axios ({
        url: '/activitySublinkManager/delete ',
        method:'post',
        params   
    })
}
// 问卷列表
export const  questionnaireSort= (params) => {
    return axios ({
        url: '/questionnaire/questionnaireSort',
        method:'get',
        params   
    })
}
// 问卷
export const  questionnaireList= (params) => {
    return axios ({
        url: '/questionnaire/questionnaireList',
        method:'get',
        params   
    })
}
// 查询数目
export const  centerList= (params) => {
    return axios ({
        url: '/questionnaire/centerList',
        method:'get',
        params   
    })
}

// 提交海报
export const  savePosterInfo= (data) => {
    return axios ({
        url: '/activityManager/savePosterInfo',
        method:'post',
        data   
    })
}
// 提交招商经理绑定活动
export const  saveInfoAgentActivity= (data) => {
    return axios ({
        url: '/extensionManager/saveInfoJson',
        method:'post',
        data   
    })
}
// 查询个人活动连接
export const  extensionManagerList= (params) => {
    return axios ({
        url: '/extensionManager/pageList',
        method:'get',
        params   
    })
}
// 查询推广海报 二维码

export const  posterAndQCodeUrl= (params) => {
    return axios ({
        url: '/extensionManager/posterAndQCodeUrl',
        method:'get',
        params   
    })
}

// 招商经理推广资源池
export const  activitycCustomerList= (params) => {
    return axios ({
        url: '/investmentQuery/activitycCustomerList',
        method:'get',
        params   
    })
}
// 物料统计列表
export const  mediaTypeStatisticsList= (params) => {
    return axios ({
        url: '/mediaTypeStatistics/queryMediaTypeStatisticsList',
        method:'get',
        params   
    })
}
// 查询个人物料行为

export const  queryMediaTypeStatisticsFrontUserList= (params) => {
    return axios ({
        url: '/mediaTypeStatistics/queryMediaTypeStatisticsFrontUserList',
        method:'get',
        params   
    })
}
// 查询直营跟进类型填写项
export const  queryTrackingKV= (params) => {
    return axios ({
        url: '/code/queryTrackingKV',
        method:'get',
        params   
    })
}
// 查询直营添加学校跟进表头
export const  queryTrackingHeader= (params) => {
    return axios ({
        url: '/code/queryTrackingHeaders',
        method:'get',
        params   
    })
}
// 查询三方
export const  querySchoolTripartiteList= (params) => {
    return axios ({
        url: '/schoolTripartite/pageList',
        method:'get',
        params   
    })
}
// 查询单个三方信息
export const  queryByIdTripartiteList= (params) => {
    return axios ({
        url: '/schoolTripartite/queryById',
        method:'post',
        params   
    })
}
// 添加三方
export const  schoolTripartiteAdd= (data) => {
    return axios ({
        url: '/schoolTripartite/add',
        method:'post',
        data   
    })
}
// 更新三方
export const  schoolTripartiteUpdate= (data) => {
    return axios ({
        url: '/schoolTripartite/update',
        method:'post',
        data   
    })
}
// 删除三方
export const  deleteTripartite= (params) => {
    return axios ({
        url: '/schoolTripartite/delete',
        method:'post',
        params   
    })
}
// 查询三方下拉

export const  queryCommonKV= (params) => {
    return axios ({
        url: '/code/commonKV',
        method:'get',
        params   
    })
}
// 批量删除三方
export const  schoolTripartiteDeleteBatchIds= (data) => {
    return axios ({
        url: '/schoolTripartite/deleteBatchIds',
        method:'post',
        data   
    })
}
// 生成当天日报
export const  schoolAddDaily= (data) => {
    return axios ({
        url: '/schoolDaily/addDaily',
        method:'post',
        data   
    })
}
// 日报列表
export const  dailyList= (params) => {
    return axios ({
        url: '/schoolDaily/dailyList',
        method:'get',
        params   
    })
}
// 日报列表2
export const  deptDailyList= (params) => {
    return axios ({
        url: '/schoolDaily/deptDailyList',
        method:'get',
        params   
    })
}
// 日报详情
export const  dailyDetailList= (params) => {
    return axios ({
        url: '/schoolDaily/dailyDetailList',
        method:'get',
        params   
    })
}
// 添加当天日报明细
export const  addDailyDetail= (data) => {
    return axios ({
        url: '/schoolDaily/addDailyDetail',
        method:'post',
        data   
    })
}
// 修改当天日报明细
export const  updateDailyDetail= (data) => {
    return axios ({
        url: '/schoolDaily/updateDailyDetail',
        method:'post',
        data   
    })
}
// 订单管理-营销订单列表
export const  activityOrderInfoList= (params) => {
    return axios ({
        url: '/activityOrderInfo/pageList',
        method:'get',
        params   
    })
}
// 查询三方
export const  myTripartiteList= (params) => {
    return axios ({
        url: '/schoolTripartite/myTripartiteList',
        method:'get',
        params   
    })
}
// 金额统计
export const  sumPayMoney= (params) => {
    return axios ({
        url: '/activityOrderInfo/sumPayMoney',
        method:'get',
        params   
    })
}